<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../pages/css/index.css">
</head>
<body>
    <div class="message">
        <div class="top">
            <form action="./sr" method="POST">
                <h2 class='caption'>留言</h2>
                <textarea name="content"></textarea>
                <p class='username'>姓名: <input type="text" name='name'>
                    <button type='submit'>发布</button>
                </p>
                
            </form>
        </div>
        <ul class="bottom">
            {{each message}}
            <li>
                    <img src={{$value.img}} alt="" width='100px' height='100px' class='img1'>
                    <p class='content'>{{$value.content}}</p>
                    <img src="../pages/images/lj.jpg" alt="" width='20px' height='20px' class='img2'>
                    <p class='times'><span>发布时间:{{$value.time}}</span> <span class='names'>发布者:{{$value.name}}</span></p>
                </li>
            {{/each}}
        </ul>
    </div>
    <script src='../pages/js/index.js'></script>
</body>
</html>